package com.frxuexi.park2212.payment

import androidx.databinding.DataBindingUtil
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.frxuexi.lib_base.entity.BillBeanItem
import com.frxuexi.park2212.R
import com.frxuexi.park2212.databinding.ItemBillBinding

class BillAdapter:BaseQuickAdapter<BillBeanItem,BaseViewHolder>(R.layout.item_bill) {
    lateinit var binding:ItemBillBinding

    override fun onItemViewHolderCreated(viewHolder: BaseViewHolder, viewType: Int) {
        super.onItemViewHolderCreated(viewHolder, viewType)
        DataBindingUtil.bind<ItemBillBinding>(viewHolder.itemView)
    }
    override fun convert(helper: BaseViewHolder, item: BillBeanItem) {
        binding=DataBindingUtil.getBinding<ItemBillBinding>(helper.itemView)!!
        binding.bean=item
    }
}